home *** CD-ROM | disk | FTP | other *** search
XSetup plugin | 2001-05-14 | 1.9 KB | 73 lines |
- "FILE"="Xteq Systems X-Setup Plugin 6.0"
- "TYPE"="6"
- "COUNT"="2"
- "UIPATH"="Internet\Outlook Express\System"
- "NAME"="Advanced Options"
- "LANGUAGE"="VBScript"
- "VERSION"="2.00"
- "TEXT 1"="Enable creation of new accounts (email, news etc.)"
- "TEXT 2"="Enable HTTP mail accounts support"
- "DESCRIPTION 1"="Miscellaneous settings for Outlook Express."
- "AUTHOR"="Xteq Systems"
- "CONTACTURL"="http://www.xteq.com"
- "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
- "COMMENT 1"="HTTP Mail option added by Neil R. Turner [totalxs@hotmail.com] after some inspiration from SΘbastien Maurice."
-
- sValPath=""
- sP1="HKCU\Software\Microsoft\Outlook Express\"
- sP2="HKCU\Identities\Last User ID"
-
-
- sV4="HKLM\SOFTWARE\Microsoft\Outlook Express\" 'DW (1 = enable restriction)
-
- Sub Plugin_Initialize
- 'OK, let's have a look if we are running IE5...
- s=RegReadValue(sP2)
- if IsEmpty(s)=false then
- 'OK - we have a value - check if we can find OE
- sValPath="HKCU\Identities\" & s & "\Software\Microsoft\Outlook Express\5.0\"
- If RegPathExists(sValPath) then
- 'OE5 !
- sValPath=sValPath '& sValue
- else
- sValPath=sP1 '& sValue
- end if
- else
- sValPath=sP1 '& sValue
- end if
-
-
- i=RegReadValue(sV4 & "No Modify Accts")
- if i<>1 then
- Call SetUIElement(1,True)
- end if
-
- i=RegReadValue(sV4 & "HTTP Mail Enabled")
- if i=1 then
- Call SetUIElement(2,True)
- end if
-
- ' else
- ' Disable
- ' end if
- End Sub
-
- Sub Plugin_Apply(ElementIndex,ElementSubIndex)
- i=GetUIElement(1)
- if i=true then
- If RegValueExists(sV4 & "No Modify Accts") then Call RegDeleteValue(sV4 & "No Modify Accts")
- else
- Call RegWriteValue(sV4 & "No Modify Accts",1,2)
- end if
-
- i=GetUIElement(2)
- if i=true then
- Call RegWriteValue(sV4 & "HTTP Mail Enabled",1,2)
- else
- If RegValueExists(sV4 & "HTTP Mail Enabled") then Call RegDeleteValue(sV4 & "HTTP Mail Enabled")
- end if
- End Sub
-
- Sub Plugin_Terminate
- End Sub
-